<?php
/**
* weshuo microblog platform
* @copyright  (c) 2010-2011 weshuo team http://www.weshuo.com
* @license  The Mozilla Public License (MPL 1.1)
* @author iceweb
*/ 

header("Content-type: text/html; charset=utf-8");
define("ROOT_PATH",substr(__FILE__,0,-9));
session_start();
/**
 * 定义项目目录
 */
define("APP_PATH",ROOT_PATH."website/");
define("BASE_PATH",ROOT_PATH."source/");
define("APP_CONTROL", 'index.php');
/**
 * 定义模型路径
 */
define ( "APP_MODEL_PATH", APP_PATH . 'model/' );
/**
 * 定义视图路径
 */
define ( "APP_VIEW_PATH", APP_PATH . 'theme/' );
/**
 * 类库路径
 */
define ( "APP_LIB_PATH", APP_PATH . 'library/' );

/**
 * 载入路由类
 */
require BASE_PATH.'core/BaseRoute.class.php';

/**
 * 载入核心类
 */
require BASE_PATH.'core/BaseCore.class.php';

/**
 * 载入配置文件
 */
require BASE_PATH.'config/config.php';

$baseCore=new BaseCore();
$baseCore->start();
